export interface SelectGroupType {
	label: string;
	value: any;
	disabled?: boolean;
}
export interface PySelectGroupType {
	//占位文本
	placeholder?: string;
	//是否禁用
	disabled?: boolean;
	change?: (val: string, _value: any) => void;
	/** 懒加载 */
	lazy?: {
		lazyLoad: (node: NodeRangeType, resolve: (data: RangeListType) => void) => any;
	};
	/** key 期望是数字 */
	labelOption?: Record<string, string>;
	valueKeys?: "value" | "label" | "object";
	/** 是否显示清除按钮，默认显示 */
	clearable?: boolean;
}

let a: object = [];

export type RangeListType = {
	label?: string;
	key?: string;
	value: RangeValueType[];
};

export type RangeValueType = {
	label: string;
	value: number[] | string[] | string | number;
	[key: string]: any;
};

export type NodeRangeType = RangeValueType & { level: number } & { [key: string]: any };
